package com.company.fraction;

class Fraction {
    private double f1;
    private double f2;
     Fraction (){
        f2 = 1.0;
        f2 = 1.0;
    }
     Fraction (double f1,double f2){
         this.f1 = f1;
         this.f2 = f2;
     }
     double printF1 (double f1,double f2){
         System.out.println();

         return f1;
     }
     String printF2 (String f1,String f2){
         System.out.println();
         return f1;
     }
     public double add(){
         System.out.println(f1 + f2);
         return 0;
     }
     public double subbtact(){
         System.out.println(f1 - f2);
         return 0;
     }
     public double mulyiply(){
         System.out.println(f1*f2);
         return 0;
     }
     public double divide(){
         System.out.println(f1/f2);
         return 0;
     }

}
class FractionSub extends Fraction{
  FractionSub(double f1, double f2){
      f1 = 2;
      f2 = 3;
  }
}
 class FractionTest {
    public static void main(String[] args) {
        Fraction f = new Fraction();
        f.add();
        f.mulyiply();
        f.subbtact();
        f.divide();
    }

}
